package com.cmc.cloud.cmclink.doc.vo.voyagebsavo;

import lombok.*;

import java.math.BigDecimal;

import io.swagger.v3.oas.annotations.media.Schema;
import com.cmes.framework.common.pojo.PageParam;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * bsa （base space Allocation） 维护分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - bsa （base space Allocation） 维护分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class VoyageBsaPageReqVO extends PageParam {

    @Schema(description = "模板标记")
    private Boolean isTemplate;

    @Schema(description = "进出口类型", example = "2")
    private String exImType;

    @Schema(description = "航线", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "航线编码不能为空")
    private String laneCode;

    @Schema(description = "船舶代码")
    private String vesselCode;

    @Schema(description = "航次")
    private String voyage;

    @Schema(description = "港口代码")
    private String polCodes;

    @Schema(description = "bsa箱量teu")
    private Integer bsaTeu;

    @Schema(description = "bsa重量吨")
    private Integer bsaTons;

    @Schema(description = "张力teu")
    private Integer optionTeu;

    @Schema(description = "张力重量吨")
    private Integer optionTons;

    @Schema(description = "冷插数")
    private Integer rfUnit;

    @Schema(description = "HC（teu")
    private Integer hcTeu;

    @Schema(description = "危险品占比teu")
    private BigDecimal maxDgPercent;

    @Schema(description = "危险品定额teu")
    private Integer maxDgTeu;

    @Schema(description = "全船接载开关", requiredMode = Schema.RequiredMode.REQUIRED)
    private String bookingOpenStatus;

    @Schema(description = "全船接载开关人")
    private String openCloseUser;

    @Schema(description = "全船接载开关时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime openCloseTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "etu 时间范围开始")
    private String startTime;

    @Schema(description = "etu 时间范围结束")
    private String endTime;
}
